package dk.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.ReturnData.ResponseData;

import dk.service.ApiService;

@RestController
@RequestMapping("api")
public class MenuController {
	
	@Autowired 
	ApiService apiservice;
	
	@PostMapping("GetMenu")
public ResponseData GetMenu (String token) {
	System.out.println("GetMenu");
	return apiservice.GetMenu(token);
	
}
}
